.search-data-topic {
    margin-bottom: 32px;
}

.search-data-topic__header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    h2 {
        @include subtitle-2-bold;
        margin: 0;
        text-align: left;
        color: $blue-90;

        @include sm-only {
            @include body-1-bold;
        }
    }
}

.search-data-topic__header-button {
    width: 100%;
    margin-bottom: 16px;
    cursor: pointer;
    padding: 0;
    background: transparent;

    &:focus {
        text-decoration: none;
    }

    &:hover {
        .search-data-topic__header h2,
        .search-data-topic__hit-count {
            text-decoration: underline;
        }
    }
}

.search-data-topic__hit-count {
    @include body-2-semibold;
    color: $blue-65;

    svg {
        height: 10px;
        width: 10px;
        background-color: $blue-65;
        border-radius: 50px;
        padding: 2px;
        color: $blue-10;
        margin-left: 8px;
    }

    @include sm-only {
        display: none;
    }
}

.search-data-topic__see-all-button {
    @include body-3-medium;
    display: none;

    background-color: $blue-20;
    color: $blue-90;
    padding: 0 24px;
    height: 40px;
    line-height: 40px;
    border: none;
    cursor: pointer;
    align-items: baseline;
    justify-content: center;
    width: 100%;

    @include sm-only {
        display: flex;
    }

    &:hover {
        text-decoration: underline;
    }

    span {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    svg {
        height: 10px;
        margin-left: 8px;
        margin-bottom: 1px;
    }
}

.search-data-topic-list,
.search-data-topic-hit {
    list-style: none;
}

.search-data-topic-hit + .search-data-topic-hit {
    margin: 8px 0;
}
